home *** CD-ROM | disk | FTP | other *** search
- Path: in2.uu.net!zdc!zippo!drn
- From: Clarence Chiang
- Newsgroups: comp.lang.c++
- Subject: Re: A class with pointers to yet undeclared classes
- Date: 15 Apr 1996 10:51:46 -0700
- Organization: Zippo
- Sender: http@doc.zippo.com
- Message-ID: <4ku2bi$6c9@doc.zippo.com>
- NNTP-Posting-Host: doorstop.spiderisland.com
-
- In article <4ksden$276@decaxp.HARVARD.EDU>, mueller@course1.HARVARD.EDU says...
- >
- >How do I convince the compiler that class B is going to be declared later?
- >
- > Mark
- > mueller@fas.harvard.edu
- >
- >
-
- Forward declaration ...
-
- example:
-
- class A;
-
- class B {
-
- A* pA;
- };
-
- class A {
-
- };
-
- Clarence Chiang
- Spider Island Software
-